﻿#include "MeasureSpecDockWidget.h"
#include "b3mainwindow.h"

MeasureSpecDockWidget::MeasureSpecDockWidget(QWidget *parent,  B3MainWindow *win,Qt::WindowFlags flags)
    :QDockWidget(parent, flags)
{
    m_MeasureSpec = new MeasureSpecWidget(this, win);
    setWidget(m_MeasureSpec);
    connect(m_MeasureSpec, SIGNAL(closeDockWidget()), this, SLOT(hide()));
    connect(m_MeasureSpec, SIGNAL(goToXYZ(double,double,double,double)), this, SIGNAL(goToXYZ(double,double,double,double)));
}

void MeasureSpecDockWidget::clean()
{
    m_MeasureSpec->clean();
}
